package com.wx.mall.operate.dto;

import com.wx.mall.common.validator.FlagValidator;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class DisUseTwoDto {

    @ApiModelProperty("当前页")
    @NotNull(message = "不能为空")
    private Integer pageNum;

    @ApiModelProperty("页数")
    @NotNull(message = "不能为空")
    private Integer pageSize;

    @FlagValidator(value = {"0","1","2"},message = "状态不正确")
    @ApiModelProperty(value = "使用状态:0未使用,1已使用,2已过期")
    private Integer state;

    @ApiModelProperty(value = "使用后获取订单id")
    private Integer orderId;

    @ApiModelProperty("排序方式:0为时间,1为订单状态")
    @FlagValidator(value = {"0","1"},message = "状态不正确")
    private int sort;

    @ApiModelProperty(value = "用户id")
    private Long useId;
}
